home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
ADD.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
1KB
|
48 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_Add( cNum1, cNum2 ) --> cString
PARAMETERS:
cNum1: First Number String
cNum2: Second Number String to add to first
SHORT:
Perform addition up to 64,000 digits (I swear I'm not making this up!)
DESCRIPTION:
_Add() performs addition on STRINGS that represent numbers to add together.
_add() is used primarily to perform addition on numbers that exceed 16 digit
precision.
NOTE:
For additions that DO exceed 16 digits, you cannot convert the results to
numeric because you will lose digits in the conversion.
Also, number strings must represent positive whole numbers. _Add() will not
handle addition of negative numbers, or numbers with decimal fractions.
See also, _Mult() which does similar things with multiplication.
EXAMPLE:
? _Add('11111111111111111111','22222222222222222222')
Result: "33333333333333333333"
Numbers do not have to exceed 16 digits in order to use _Add()
? _Add('99','1')
Result: "100"
******************************************************************************/